2feb9cd1fa7fbf60b9d8b7a6e19829a8c7a3344c,plugins/hg4idea/src/org/zmlx/hg4idea/provider/commit/HgCheckinEnvironment.java,HgCommitAdditionalComponent,HgCommitAdditionalComponent,#Project#CheckinProjectPanel#,316

Before Change


      HgVcs myVcs = HgVcs.getInstance(myProject);
      myAmend.setEnabled(myVcs != null && myVcs.getVersion().isAmendSupported());
      myAmend.setText(myAmend.getText() + " (QRefresh)");
      final Insets insets = JBUI.insets(2);
      // add commit subrepos checkbox
      GridBagConstraints c = new GridBagConstraints();
      c.anchor = GridBagConstraints.CENTER;

After Change


      myCommitSubrepos.addActionListener(new MySelectionListener(myAmend.getCheckBox()));
      myAmend.getCheckBox().addActionListener(new MySelectionListener(myCommitSubrepos));

      GridBag gb = new GridBag().
        setDefaultInsets(JBUI.insets(2)).
        setDefaultAnchor(GridBagConstraints.WEST).
        setDefaultWeightX(1).
        setDefaultFill(GridBagConstraints.HORIZONTAL);
      myPanel = new JPanel(new GridBagLayout());
      myPanel.add(myAmend.getComponent(), gb.nextLine().next());
      myPanel.add(myCommitSubrepos, gb.nextLine().next());
    }